import classnames from 'classnames';

function noop() {}

export const componentUtil = {
  getPrefixCls() {},

  /**
   *  样式拼装
   * @param args
   */
  classnames(...args: any[]) {
    return classnames(...args);
  },

  ensureFunction(fn: any) {
    return typeof fn === 'function' ? fn : noop;
  }
}
